package com.example.gclove.mapper;

import com.example.gclove.pojo.Thing;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ThingMapper {

    List<Thing> selectByThingUserId(@Param("thingUserId") int thingUserId);

    Integer selectSumByUserId(@Param("thingUserId") int thingUserId);

    //更正用户的总分
    void updateThing(Thing thing);

    //查询用户的总分
    void addThing(Thing thing);


}
